﻿using System;


namespace HAVNet.Intros.AST
{
    public class ASTEmbStmtDo : ASTEmbStmt
    {
        public ASTStatement statement   { get; set; }
        public ASTExpr      expression  { get; set; }
        
        public override string ToString ()
        {
            return
                "do " +
                Environment.NewLine +
                statement.ToString() +
                " while (" + expression.ToString() + "); ";
        }
    }
}
